//
//  YWLogRecordTool.h
//  maintain
//
//  Created by 烟雨云渊 on 17/2/14.
//  Copyright © 2017年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWSingleton.h"

@interface YWLogRecordTool : NSObject
YWSingletonH(LogRecordManager)

//保存接口参数日志到本地
- (void)saveLocalPatameterLog:(NSDictionary *)logDic;
//把logRecord封装成一个字典，return 字典
- (NSMutableDictionary*)getLogDictionaryWithModule:(NSString*)module interface:(NSString*)url params:(NSDictionary*)params headers:(NSDictionary*)headers tag:(NSString*)tag;

- (NSMutableDictionary *)successOrFailedLogDicWith:(NSMutableDictionary *)dic statusCode:(NSInteger)statusCode errorInfo:(NSString *)errorInfo logTag:(NSString *)logTag;
//上传log日志
- (void)uploadLogRecordToAliyunOSSProgressBlock:(void (^)(float progress))progressBlock completeBlock:(void (^)(BOOL success))completeBlock;
//是否存在日志文件
- (BOOL)existLogRecordFile;
//目录下文件的大小
- (NSString*)logFileSize;
@end
